package com.hong.fy_model.model.cart;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import com.hong.fy_model.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.HashMap;
import java.util.Map;

/**
 * 
 *
 * @author wqh
 * @email 1601709391@qq.com
 * @date 2022-06-16 21:42:56
 */
@Data
@TableName("product_cart_relation")
@ApiModel(value = "ProductCartRelationEntity", description = "商品-购物车关系")
public class ProductCartRelationEntity  implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 商品ID
	 */
	@TableId(value = "product_id")
	@ApiModelProperty(value="商品ID")
	private Integer productId;

	/**
	 * 购物车ID
	 */
	@TableField("cart_id")
	@ApiModelProperty(value="购物车ID")
	private Integer cartId;
	/**
	 * 用户ID
	 */
	@TableField("user_id")
	@ApiModelProperty(value="用户ID")
	private Integer userId;

	@TableField("checked")
	@ApiModelProperty(value="是否勾选")
	private Integer checked;
	/**
	 * 商品数量
	 */
	@TableField("product_num")
	@ApiModelProperty(value="商品数量")
	private Integer productNum;

	/**
	 * 
	 */
	@TableField("create_time")
	@ApiModelProperty(value="创建时间")
	private Date createTime;

	/**
	 * 
	 */
	@TableField("update_time")
	@ApiModelProperty(value="更新时间")
	private Date updateTime;

	@ApiModelProperty(value = "其他参数")
	@TableField(exist = false)
	private Map<String,Object> param = new HashMap<>(); //用于存放别的数据
}



